package com.atguigu.common.exception;

/**
 * 订单异常
 * @author gcq
 * @Create 2021-01-07
 */
public class NoStockException extends RuntimeException {
    private Long skuId;

    public NoStockException(Long skuId) {
        super("商品:" + skuId + "没有库存了");
    }

    public Long getSkuId() {
        return skuId;
    }

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }
}